package com.sys.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;


/**
 * 读取项目相关配置
 *
 * @author LGY
 */
@Data
@Component
@ConfigurationProperties(prefix = "sys.auth.third")
public class ThirdAuthConfigProperties implements Serializable {

    @Serial
    private static final long serialVersionUID = 8016782546618523928L;

    private List<App> apps;

    @Data
    public static class App implements Serializable {
        private String type;

        private String icon;

        private String clientId;

        private String clientSecret;

        private String redirectUri;

        private String authUrl;
    }
}
